<DOCTYPE html>
    <html lang="zh-CN">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link href="bootstrap3\css\bootstrap.min.css" rel="stylesheet">
        <script src="bootstrap3\js\jquery-1.12.4.min.js">

        </script>
        <script src="bootstrap3\js\bootstrap.min.js">

        </script>
    </head>
    <script type="text/javascript" lang="javascript">
        function clickTab(tabNum) {
            var tab_h = document.getElementById('tab_home');
            var tab_l = document.getElementById('tab_login');
            var tab_m = document.getElementById('tab_manage');
            switch (tabNum) {
                case 1:
                    tab_h.setAttribute("class", "active");
                    tab_l.setAttribute("class", "hover");
                    tab_m.setAttribute("class", "hover");
                    break;
                case 2:
                    tab_h.setAttribute("class", "hover");
                    tab_l.setAttribute("class", "active");
                    tab_m.setAttribute("class", "hover");
                    break;
                case 3:
                    tab_h.setAttribute("class", "hover");
                    tab_l.setAttribute("class", "hover");
                    tab_m.setAttribute("class", "active");
                    break;
            }



        }
    </script>
    <div class="container-fuild">

        <div class="col-md-6" style="padding: 15px">
            <h3>字体图标</h3>
            <span class="glyphicon glyphicon-search"></span>
            <div style="margin-top: 5px">搜索</div>

            <h3>控件中使用图标</h3>
            <button class="btn btn-default">
                <span class="glyphicon glyphicon-object-align-top"></span>
            </button>

            <div class="alert alert-danger">
                <span class="glyphicon glyphicon-remove"></span> 发生错误！
            </div>

            <div class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown">
                请选择<span class="caret"></span>
                </a>

                </button>
                <ul class="dropdown-menu" aria-labelledby="btn-dropdown">
                    <li class="dropdown-header">省份</li>
                    <li><a>河南</a></li>
                    <li><a>北京</a></li>
                    <li><a>湖南</a></li>
                    <li role="separator" class="divider"></li>
                    <li class="disabled"><a>上海</a></li>
                </ul>
                </button>
            </div>

            <h3>按钮组</h3>
            <div class="btn-toolbar" role="toolbar">
                <div class="btn-group " role="group">
                    <button type="button" class="btn btn-default">确定</button>
                    <button type="button" class="btn btn-default">取消</button>
                </div>
                <div class="btn-group btn-group-sm " role="group">
                    <button type="button" class="btn btn-default">新增</button>
                    <button type="button" class="btn btn-default">修改</button>
                    <div class="btn-group btn-group-sm" role="group">
                        <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            下拉菜单<span class="caret"></span>
                            </button>
                        <ul class="dropdown-menu">
                            <li><a>apple</a></li>
                            <li><a>orange</a></li>
                            <li><a>paino</a></li>
                        </ul>
                    </div>
                </div>
                <div class="btn-group-vertical" role="group">
                    <button type="button" class="btn btn-info">按钮1</button>
                    <button type="button" class="btn btn-info">返回2</button>
                    <button type="button" class="btn btn-info">搜索</button>
                </div>
            </div>
            <code>a标签的横排</code>
            <div class="btn-group btn-group-justified">
                <a class="btn btn-success">填满的按钮</a>
                <a class="btn btn-success">中华</a>
            </div>
            <code>button按钮的横排(必须放到按钮组容器中)</code>
            <div class="btn-group btn-group-justified">
                <div class="btn-group"><button type="button" class="btn btn-warning">按钮的横排</button></div>
                <div class="btn-group"><button type="button" class="btn btn-warning">需要再放一个容器</button></div>
                <div class="btn-group"><button type="button" class="btn btn-warning">实现起来不如a标签</button></div>
                <div class="btn-group"><button type="button" class="btn btn-warning">不知道两者有什么区别</button></div>
            </div>

            <div class="btn-group">
                <div class="btn-group">
                    <button type="button" class="btn btn-danger btn-dropdown" data-toggle="dropdown">
                         下拉菜单<span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a>apple</a></li>
                        <li><a>orange</a></li>
                        <li><a>paino</a></li>
                    </ul>
                </div>
                <div class="btn-group">
                    <button type="button" class="btn btn-info btn-dropdown" data-toggle="dropdown">
                         下拉菜单2<span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a>apple2</a></li>
                        <li><a>orange2</a></li>
                        <li><a>paino2</a></li>
                    </ul>
                </div>
            </div>
            <br>


            <code>带分割线的</code>

            <div class="btn-group">
                <div class="btn-group">
                    <button type="button" class="btn btn-danger">下拉菜单</button>
                    <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                         &nbsp;<span class="caret"></span>
                         <span class="sr-only">Toggle Dropdown</span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a>apple</a></li>
                        <li><a>orange</a></li>
                        <li><a>paino</a></li>
                    </ul>
                </div>
                <div class="btn-group">
                    <button type="button" class="btn btn-info">下拉菜单2</button>
                    <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                         &nbsp;<span class="caret"></span>
                         <span class="sr-only">Toggle Dropdown</span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a>apple2</a></li>
                        <li><a>orange2</a></li>
                        <li><a>paino2</a></li>
                    </ul>
                </div>
            </div>


            <code>带分割线的(向上)</code>

            <div class="btn-group">
                <div class="btn-group dropup">
                    <button type="button" class="btn btn-danger">下拉菜单</button>
                    <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                         &nbsp;<span class="caret"></span>
                         <span class="sr-only">Toggle Dropdown</span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a>apple</a></li>
                        <li><a>orange</a></li>
                        <li><a>paino</a></li>
                    </ul>
                </div>
                <div class="btn-group dropup">
                    <button type="button" class="btn btn-info">下拉菜单2</button>
                    <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                         &nbsp;<span class="caret"></span>
                         <span class="sr-only">Toggle Dropdown</span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a>apple2</a></li>
                        <li><a>orange2</a></li>
                        <li><a>paino2</a></li>
                    </ul>
                </div>
            </div>
            <div class="nav  nav-pills nav-justified">
                <li><a>Add</a></li>
                <li><a>Edit</a></li>
                <li class="active"><a>Delete</a></li>
            </div>
        </div>
        <div class="col-md-6">
            <h3>输入框组</h3>
            <div class="form-horizontal">
                <div class="input-group col-md-8">
                    <span class="input-group-addon">姓名:</span>
                    <input type="text" class="form-control" placeholder="UserName"></div>
            </div>
            <br>
            <div class="input-group col-md-8 ">
                <span class="input-group-addon">密码:</span>
                <input type="text" class="form-control" placeholder="PassWord"></div>
            <br>
            <h3>调整大小</h3>
            <div class="input-group col-md-8 input-group-lg">
                <span class="input-group-addon">Large</span>
                <input type="text" class="form-control" id="tb_text">
            </div>
            <br>
            <div class="input-group col-md-8 input-group-sm">
                <span class="input-group-addon">small</span>
                <input type="text" class="form-control">
            </div>
            <h3>额外的单选框和多选框</h3>
            <div class="input-group col-md-8 ">
                <span class="input-group-addon">
                    <input type="checkbox">
                </span>
                <input type="text" class="form-control">
            </div>
            <br>
            <div class="input-group col-md-8 ">
                <span class="input-group-addon">
                    <input type="radio">
                </span>
                <input type="text" class="form-control">
            </div>

            <h3>导航</h3>
            <ul class="nav nav-tabs">
                <li id="tab_home" class="active"><a href="javascript:clickTab(1);">首页</a></li>
                <li id="tab_login"><a href="javascript:clickTab(2);">登录</a></li>
                <li id="tab_manage"><a href="javascript:clickTab(3);">管理</a></li>
            </ul>

            <h3>胶囊样</h3>
            <ul class="nav nav-pills">
                <li id="tab_home" class="active"><a href="javascript:clickTab(1);">首页</a></li>
                <li id="tab_login"><a href="javascript:clickTab(2);">登录</a></li>
                <li id="tab_manage"><a href="javascript:clickTab(3);">管理</a></li>
            </ul>
            <h3>胶囊样--垂直</h3>
            <ul class="nav nav-pills nav-stacked">
                <li id="tab_home" class="active"><a href="javascript:clickTab(1);">首页</a></li>
                <li id="tab_login"><a href="javascript:clickTab(2);">登录</a></li>
                <li id="tab_manage"><a href="javascript:clickTab(3);">管理</a></li>
            </ul>
            <h3>两段对齐的导航</h3>
            <ul class="nav nav-tabs nav-justified">
                <li><a>Home</a></li>
                <li class="active"><a>Manage</a></li>
                <li><a>Search</a></li>
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown">
                    带下拉菜单的标签页<span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a>学习</a></li>
                        <li><a>工作</a></li>
                        <li><a>游戏</a></li>
                    </ul>

                </li>
            </ul>
            <div>

            </div>

        </div>
    </div>
    </div>


    </div>

    </html>